Day 8_資料型態(Data Types)- 字串 (Strings)
8-1. ‘’
式子:
s1 = 'Hello!'
print(s1)
print(type(s1))
結果:
Hello!
<class 'str'>
8-2. ""
式子:
s2 = "Hello!"
print(s2)
print(type(s2))
結果:
Hello!
<class 'str'>
8-3. ‘’’
式子:
s3 = '''Hello
hi
hello'''
print(s3)
print(type(s2))
結果:
Hello
hi
hello
<class 'str'>